package com.lei.view.sys;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;

import javax.swing.JPanel;

import com.lei.factory.bill.BillPanelNames;
import com.lei.factory.bill.BillUIFacotry;
import com.lei.util.FrameUtil;

public class ContentCenterPanel extends JPanel {
	private static final long serialVersionUID = 1L;
	private JPanel center;
    
    
	public ContentCenterPanel() {
			initImage();
			initFrame();
			initAssembly();
			addActionListenner();
			this.updateUI();
	}


	private void initImage() {
		
	}


	private void initFrame() {
		this.setPreferredSize(new Dimension(50,50));
		this.setOpaque(false);
	}


	private void initAssembly() {
		center = (CenterPanel) BillUIFacotry.getBillPanelForClassName(BillPanelNames.CENTERPANEL);
		
		this.add(center);

	}
	
/*    @Override
    protected void paintComponent(Graphics g){
        super.paintComponent(g);
        g.setColor(new Color(200,200,200,100));
        g.fillRect(0, 0, this.getWidth(), this.getHeight());
    }*/


	private void addActionListenner() {
		
	}
}
